<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="am-u-sm-9">
<ol class="am-breadcrumb">
  <li><a href="#">小区管理</a></li>
  <li class="am-active">编辑</li>
</ol>
<form class="am-form am-form-horizontal" action="${ctx}/admin/xiaoqu/update.do" method="post">
  <input type="hidden" name="id" value="${xiaoqu.id}"/>
  <input type="hidden" name="pageNo" value="${param.pageNo}"/>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">小区名称</label>
        <div class="am-u-sm-10 am-fl-im">
            <input type="text" class="am-form-field am-input-sm" name="name" value="${xiaoqu.name}">
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">小区简拼</label>
        <div class="am-u-sm-10 am-fl-im">
            <input type="text" class="am-form-field am-input-sm" name="name" value="${xiaoqu.code}">
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">建筑年代</label>
        <div class="am-u-sm-3 am-fl-im">
            <input type="text" name="buildYear" value="${xiaoqu.buildYear}" class="am-form-field am-date" placeholder="" data-am-datepicker readonly/>
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">物业公司</label>
        <div class="am-u-sm-10 am-fl-im">
            <input type="text" class="am-form-field am-input-sm" name="propertyCompany" value="${xiaoqu.propertyCompany}">
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">开发商</label>
        <div class="am-u-sm-10 am-fl-im">
            <input type="text" class="am-form-field am-input-sm" name="developer" value="${xiaoqu.developer}">
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">停车位</label>
        <div class="am-u-sm-2 am-fl-im">
            <input type="text" class="am-form-field am-input-sm" name="park" value="${xiaoqu.park}">
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">详细地址</label>
        <div class="am-u-sm-10 am-fl-im">
            <input type="text" class="am-form-field am-input-sm" name="address" value="${xiaoqu.address}">
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">小区简介</label>
        <div class="am-u-sm-10 am-fl-im">
            <textarea name="discription">${xiaoqu.discription}</textarea>
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">周边描述</label>
        <div class="am-u-sm-10 am-fl-im">
            <textarea name="surrounding">${xiaoqu.surrounding}</textarea>
        </div>
    </div>
    <div class="am-form-group">
        <label class="am-u-sm-2 am-form-label">交通状况</label>
        <div class="am-u-sm-10 am-fl-im">
            <textarea name="traffic">${xiaoqu.traffic}</textarea>
        </div>
    </div>


    <div class="am-form-group">
    <div class="am-u-sm-10 am-u-sm-offset-2">
      <button type="submit" class="am-btn am-btn-success">提交</button>
      <button type="button" class="am-btn am-btn-default" onclick="goback()">返回</button>
    </div>
  </div>
</form>
</div>
<script>
   $(function(){



   });

  function goback(){
    var pageNo = '${param.pageNo}';
    pageNo = (pageNo==null || pageNo==''||pageNo<1)?1:pageNo;
    location.href="${ctx}/admin/xiaoqu/index.do?pageNo="+pageNo;
  }


</script>